package com.shanzmoo.admin.domain.dto;

import cn.hutool.core.bean.BeanUtil;
import com.shanzmoo.db.store.entity.StoreMemberEntity;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 仓储客户 保存对象
 *
 * @author Gzhao 2021-03-08
 */
@Data
@ApiModel("仓储客户-保存对象")
public class StoreMemberSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "手机号（登录账户）")
    private String mobile;

    @ApiModelProperty(value = "公司名称")
    private String company;

    @ApiModelProperty(value = "公司联系人")
    private String contact;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "公司地址")
    private String address;

    @ApiModelProperty(value = "备注")
    private String remark;

    public StoreMemberEntity convertEntity() {
        StoreMemberEntity target = new StoreMemberEntity();
        BeanUtil.copyProperties(this, target, true);
        return target;
    }
}
